/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ueb17;

import java.util.Stack;

/**
 *
 * @author steffenschuhmann
 */
public class ExpressionParserImpl {
    
    ExpressionNode expressionTree;
    ExpressionNode opTop;
    ExpressionNode opThis;
    
    Stack<ExpressionNode> opndStack;
    Stack<ExpressionNode> optStack;
    
    public String[] prepareExpression(String expression) {
        String[] buffer;
        
        
        buffer = expression.split(" ");
        
        for(int i = 0; i < buffer.length; i++) {
            buffer[i].trim();
        }
        
        return buffer;
    }
    
    public ExpressionNode buildTree(String expression) {
        
        opndStack = new Stack<ExpressionNode>();
        optStack = new Stack<ExpressionNode>();
        
        return expressionTree;
    }
    
}
